<div class="content">
	<div class="title">
	<h2>登录系统</h2>
	</div>
	<div class="logincontainer">
	<form id="loginForm" action="<?php
	$fromhref="";
	if(isset($_GET['fromhref']))
	{
	    $fromhref = '?fromhref='.$_GET['fromhref'];
	}
	echo $this->url(
    array(
        'controller' => 'index',
        'action'     => 'login'
    ),
    'default',
    true).$fromhref?>"method="post" >
		<input type="radio" id="loginmethod" name="loginmethod" value="teacher" />教师登录
		<input type="radio" id="loginmethod" name="loginmethod" value="student" checked="checked" />学生登录
  		<p> <h4>账号  
		<input height="20px" name="nickname" type="text" id="nickname" value="" /></h4>
  		</p>
  		<p>
  		<h5><?php if($this->tip!='')echo $this->tip;?></h5>
  		</p>

  		<p><h4>密码    
  			<input  height="20" type="password" name="password" id="password" /></h4>
  		</p>

  		<p>
   		<button type="submit">登录</button>
   	</form>	
  		</p>
			<h3><a href="<?php echo $this->url(
    array(
        'controller' => 'index',
        'action'     => 'register'
    ),
    'default',
    true) ?>">立即注册</a></h3>
			<h3><a href="#">找回密码</a></h3>
	</div>
</div>
